﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sector7.Restaurant.EntityType;
using Sector7.Framework.Core;

namespace Sector7.Restaurant.DAO
{
    /// <summary>
    /// 菜单标项签数据访问接口
    /// </summary>
    public interface IMenuItemLabelDAO
    {
        /// <summary>
        /// 创建菜单项标签
        /// </summary>
        /// <param name="label"></param>
        /// <returns></returns>
        int Create(RS_MenuItemLabel label);

        /// <summary>
        /// 读取所有菜单项标签
        /// </summary>
        /// <returns></returns>
        List<RS_MenuItemLabel> ReadAll();

        /// <summary>
        /// 根据复合编号获取菜单项标签列表
        /// </summary>
        /// <param name="labelIds">菜单项标签复合编号</param>
        /// <returns></returns>
        List<RS_MenuItemLabel> ReadAll(int labelIds);

        /// <summary>
        /// 修改菜单项标签
        /// </summary>
        /// <param name="delta">改变量</param>
        /// <returns></returns>
        int Update(EntityDelta delta);
    }
}
